package hspedu.learn.javabase.extendsImporve;

public class PesronComputer extends ComputerOrg {
    private String brand;

    public PesronComputer() {
    }

    public PesronComputer(String cpu, String memory, String disk, String brand) {
        super(cpu, memory, disk);
        this.brand = brand;
    }

    public void printInfo() {
        System.out.println("PcInfo=");
        System.out.println(getDetails()+"brand="+brand);
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @Override
    public String getDetails() {
        return super.getDetails()+" brand=" +brand;
    }
}
